<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/11/20
  Time: 8:17
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>文件操作</title>
</head>
<body>
<form action="" method="post">
    <input type="text" name="username" value=""> <br>
    <input type="password" name="password" value=""> <br>
    <input type="submit" value="提交">



</form>

<hr>
<h1>文件表单</h1>

<form action="${pageContext.request.contextPath}/fileUpLoadServlet" method="post" enctype="multipart/form-data">
   上传者： <input type="text" name="username" value=""> <br>
   选择文件： <input type="file" name="myfile" value=""> <br>
    <input type="submit" value="文件提交">

</form>


<hr>
<h1>文件下载测试</h1>
  home_loop_720.mp4<a href="${pageContext.request.contextPath}/downloadServlet?filename=home_loop_720p.mp4"> 点击下载</a>
<br>
 shop测试 <a href="${pageContext.request.contextPath}/downloadServlet?filename=shop测试.sql">点击下载</a>
</body>
</html>
